﻿@{
    ViewBag.Title = "purse address";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">
    @ViewData["Json"]
</div>



<script src="~/Scripts/jquery-1.10.2.min.js"></script>
<script>
    $(function () {
        var address = "0x464b0b37db1ee1b5fbe27300acfbf172fd5e4f53";
        var startblock = "3850548";
        GetUrl(address, startblock);
    })

    function GetUrl(address, startblock) {

        //var purseAddress = "http://api.etherscan.io/api?module=account&action=txlist&address=" + address + "&startblock=" + startblock +"&endblock=99999999&sort=asc&apikey=FAES9K2QJZD4S1KD4U3XY2PDJR6C8289ES";
        //var purseAddress = "http://api.etherscan.io/api?module=account&action=txlist&address=0x464b0b37db1ee1b5fbe27300acfbf172fd5e4f53&startblock=3850548&endblock=3921543&sort=asc&apikey=FAES9K2QJZD4S1KD4U3XY2PDJR6C8289ES";



        $.post("/PurseAddress/GetUrlPurse", { address: address, startblock: startblock}, function (res) {
            console.info(res);

            if (res == undefined || res == null) {
                return;
            }
            var data = res.Data;//数据
        })
    }
</script>